package actionform;

import java.util.Calendar;
import java.util.Date;

import metier.Encherir;
import metier.Offre;
import metier.Personne;

import org.apache.struts.action.ActionForm;

public class BeanEncherir extends ActionForm{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Personne personne ;
	private Offre offre;
	private Encherir enchere;
	
	
	
	public BeanEncherir() {
		enchere = new Encherir();
	}
	

	
	
	public Encherir getEnchere() {
		return enchere;
	}
	public void setEnchere(Encherir enchere) {
		this.enchere = enchere;
	}
	public Personne getPersonne() {
		return personne;
	}
	public void setPersonne(Personne personne) {
		this.personne = personne;
	}
	public Offre getOffre() {
		return offre;
	}
	public void setOffre(Offre offre) {
		this.offre = offre;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	public int getId_offre()
	{
		return offre.getId_offre();
	}
	
	public void setPrix_enchere(double prix_enchere)
	{
		
		enchere.setPrix_enchere(prix_enchere);
	}
	
	public double getPrix_enchere()
	{
		return enchere.getPrix_enchere();
	}
	
	public Date getDate_enchere()
	{
		return enchere.getDate_enchere();
	}
	
	public void setDate_enchere(Date dateEnchere)
	{
		 
		Calendar cal=Calendar.getInstance();
		Date Today = new Date(cal.getTimeInMillis());		
		enchere.setDate_enchere(Today);
	}
	
	
	
}
